home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / OT PAPServerSample / PAPServerUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.8 KB  |  75 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        PAPServerUtilities.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Rich Kubota    
  7.  
  8.     Copyright:    Copyright © 1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/22/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #ifndef __PAPSERVERUTILITIES__
  25. #define __PAPSERVERUTILITIES__
  26.  
  27.  
  28. #ifndef __CONDITIONALMACROS__
  29. #include <ConditionalMacros.h>
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. #if PRAGMA_ALIGN_SUPPORTED
  37. #pragma options align=mac68k
  38. #endif
  39.  
  40. #if PRAGMA_IMPORT_SUPPORTED
  41. #pragma import on
  42. #endif
  43.  
  44. #include <Types.h>
  45. #include <OSUtils.h>
  46.  
  47. #define kRootFolderDirID    2
  48. #define kBootVolVRefNum        -1
  49.  
  50.  
  51. // Prototypes
  52. extern short             NumToolboxTraps(void);
  53. extern TrapType         GetTrapType(short theTrap);
  54. extern Boolean             TrapAvailable(short theTrap);
  55. extern pascal    OSErr    HCreateMinimum(short vRefNum,
  56.                                long dirID,
  57.                                ConstStr255Param fileName);
  58. extern OSErr            OpenTempFile(short *fRefNum);
  59. extern OSErr            WriteDataToTempFile(short fRefNum, UInt8 *buffer, UInt32 len);
  60. extern OSErr             CloseTempFile(short    fRefNum);
  61.  
  62.  
  63. #if PRAGMA_IMPORT_SUPPORTED
  64. #pragma import off
  65. #endif
  66.  
  67. #if PRAGMA_ALIGN_SUPPORTED
  68. #pragma options align=reset
  69. #endif
  70.  
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74.  
  75. #endif /* __PAPSERVERUTILITIES__ */